import request from '@/utils/request'

// 查询订单音乐列表列表
export function listOrdermusic(query) {
  return request({
    url: '/order/ordermusic/list',
    method: 'get',
    params: query
  })
}

// 查询订单音乐列表详细
export function getOrdermusic(orderId) {
  return request({
    url: '/order/ordermusic/' + orderId,
    method: 'get'
  })
}

// 新增订单音乐列表
export function addOrdermusic(data) {
  return request({
    url: '/order/ordermusic',
    method: 'post',
    data: data
  })
}

// 修改订单音乐列表
export function updateOrdermusic(data) {
  return request({
    url: '/order/ordermusic',
    method: 'put',
    data: data
  })
}

// 删除订单音乐列表
export function delOrdermusic(orderId) {
  return request({
    url: '/order/ordermusic/' + orderId,
    method: 'delete'
  })
}
